package com.story.api.moduler.option.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.story.api.common.persistence.dao.SocialContactMapper;
import com.story.api.common.persistence.model.SocialContact;
import com.story.api.common.result.ServerResponse;
import com.story.api.moduler.option.service.SocialContactService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @decription
 * @Date 2017-12-15 11:39
 */
@Service
public class SocicalContactImpl implements SocialContactService {

    private static final Logger log = LoggerFactory.getLogger(SocicalContactImpl.class);

    @Autowired
    private SocialContactMapper socialContactMapper;

    @Override
    public ServerResponse getSocicalContact() {
        List<SocialContact> socialContactList = socialContactMapper.selectList(new EntityWrapper<SocialContact>());
        return ServerResponse.getSuccess("success",socialContactList);
    }
}
